<?php

require 'common.php';

if($_POST) {
    $title = $_POST['title'];
    $content = $_POST['content'];
    $time = time();
    mysql_query("insert into article (`title`,`content`,`time`) values (`$title`,`$content`,`$time`)");
}

require 'templates/index.html';